package org.gd.hellojavacore.tests;

import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-10-21 11:08
 */
public class QueueTest {

    public static void main(String[] args) {
        Queue<String> queue = new ConcurrentLinkedQueue<>();
        queue.add("1");
        queue.add("2");
        queue.add("3");
        System.out.println(queue.size());

        for(String el: queue) {
            System.out.print(el + " ");
        }
        System.out.println();

        System.out.println(queue.size());
        System.out.println(queue.size());
    }
}
